function getnotice(callback) {
  wx.request({
    url: 'http://localhost:3000/api/blog',
    success(res) {
      callback(res)
    }
  })
}

function addNum(id) {
  wx.request({
    method: 'POST',
    data: {
      id
    },
    url: 'http://localhost:3000/api/addView_Num',
  })
}
module.exports = {
  getnotice,
  addNum
}